Pen : Refer to the Statics
2016/01/11 |
Configure Pen to refer to the Statics.
|
|
[1] |
Install httpd, refer to here.
Furthermore, port 80 is used by pen, so change the port of httpd from 80 to another port. This example uses 8081. |
[2] | Configure Pen. |
root@dlp:~# cp /usr/share/doc/pen/penstats /var/www/html/pen
root@dlp:~#
vi /var/www/html/pen/penstats # line 4,5: change PIDFILE= /var/run/pen.pid WEBFILE= /var/www/html/pen/webstats.html
root@dlp:~#
vi /etc/apache2/conf-available/pen.conf # create new Alias /pen/ /var/www/html/pen/ <Directory /var/www/html/pen/> DirectoryIndex webstats.html <IfModule mod_authz_core.c> # Apache 2.4 # access permission Require local Require ip 10.0.0.0/24 </IfModule> </Directory>
root@dlp:~#
a2enconf pen root@dlp:~# /etc/init.d/apache2 restart root@dlp:~# chmod 755 /var/www/html/pen/penstats # generate statics root@dlp:~# /var/www/html/pen/penstats > /dev/null # add to Cron root@dlp:~# crontab -e
*/5 * * * * /var/www/html/pen/penstats > /dev/null |
[3] | Access to "http://(Pen server's hostname or IP address):(httpd listening port)/pen/", then it's possible to refer statics of Pen like follows. |